package com.stlm2.dems.dao.impl;

import org.springframework.stereotype.Repository;

import com.stlm2.dems.entity.SpecificationContent;
import com.stlm2.dems.dao.SpecificationContentDao;
import com.stlm2.core.base.impl.BaseDaoImpl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository("specificationContentDao")
public class SpecificationContentDaoImpl extends BaseDaoImpl<SpecificationContent> implements SpecificationContentDao {

    @Override
    public List<SpecificationContent> getSpecificationContent(Integer goodid, Integer specificationid) {
        Map<String,Integer> map=new HashMap<String, Integer>();
        map.put("goodid",goodid);
        map.put("specificationid",specificationid);
        return selectList("getSpecificationContent",map);
    }

    @Override
    public List<SpecificationContent> getSpecificationContentAll(Integer goodid) {
        return selectList("getSpecificationContentAll",goodid);
    }
}